package sliver.entity;

import java.io.Serializable;

import javax.persistence.Access;
import javax.persistence.AccessType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "box_size")
@Access(AccessType.FIELD)
public class Size implements Serializable{

	private static final long serialVersionUID = -4861560749167748188L;
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "id")
	private Long id;
	
	@Column(name = "type")
	private String type;
	
	@Column(name = "price")
	private Double price;
	
	@Column(name = "default_size")
	private Boolean defaultSize;
	
	@ManyToOne
	@JoinColumn(name = "goods_id")
	private Goods goods;
	
	public Size(){
		
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}
	
	public Boolean getDefaultSize() {
		return defaultSize;
	}

	public void setDefaultSize(Boolean defaultSize) {
		this.defaultSize = defaultSize;
	}

	public Goods getGoods() {
		return goods;
	}

	public void setGoods(Goods goods) {
		this.goods = goods;
	}
}